// 申请单录入公用字段
export default {
  forminfo: {
      hospcode: {
          title: "双击或空格键弹出医院",
          action: "hospital",
          field: "hospcode$hospname"
      },
      pat_hospcode: {
          title: "双击或空格键弹出医院",
          action: "hospital",
          field: "pat_hospcode$pat_hospname"
      },
      pat_sex: {
          title: "双击或空格键弹出病人类型",
          action: "seccode$SX",
          field: "pat_sex$pat_sexname"
      },
      pat_typecode: {
          title: "双击或空格键弹出病人类型",
          action: "seccode$PT",
          field: "pat_typecode$pat_typename"
      },
      req_deptno: {
          title: "双击或空格键弹出申请科室",
          action: "dept",
          field: "req_deptno$req_deptname"
      },
      req_docno: {
          title: "双击或空格键弹出申请医生",
          action: "doctor",
          field: "req_docno$req_docname"
      },
      req_wardno: {
          title: "双击或空格键弹出所属病区",
          action: "ward",
          field: "req_wardno$req_wardname"
      },
      specimen_code: {
          title: "双击或空格键弹出标本类型",
          action: "specimen",
          field: "specimen_code$specimen_name"
      },
      perform_dept: {
          title: "双击或空格键弹出执行科室",
          action: "ward",
          field: "perform_dept$perform_deptname"
      },
      sampled_user: {
          title: "双击或空格键弹出采样人",
          action: "userinfo",
          field: "sampled_user$sampled_username"
      },
      saleman: {
          title: "双击或空格键弹出销售员",
          action: "userinfo",
          field: "saleman$saleman"
      },
      sample_detail: {
          title: "双击或空格键弹出退回原因",
          action: "seccode$REFUSEREASON",
          field: "value$label"
      }
  },
  defaultCol: [{
          name: "创建用户",
          code: "create_username",
          type: "2" //input
      },
      {
          name: "创建时间",
          code: "create_dt",
          type: "7" //datetime
      },
      {
          name: "打印用户",
          code: "print_username",
          type: "2" //input
      },
      {
          name: "打印次数",
          code: "print_count",
          type: "2" //input
      },
      {
          name: "打印时间",
          code: "print_dt",
          type: "7" //datetime
      },
      {
          name: "接收用户",
          code: "recieve_username",
          type: "2" //input
      },
      {
          name: "接收时间",
          code: "recieve_dt",
          type: "7" //datetime
      },
      {
          name: "应收金额",
          code: "amount",
          type: "2" //input
      },
      {
          name: "申请状态",
          code: "req_statname",
          type: "2" //input
      }
  ],
  allReqsheetTable: [{
          data: "req_itemname",
          label: "项目名称",
          width: "160",
          // align: "center"
      },
      {
          data: "specimen_name",
          label: "标本类型",
          width: "60"
      },
      {
          data: "item_price",
          label: "金额",
          width: "50",
          align: "right"
      },
      {
          data: "req_groupname",
          label: "分单类别",
          width: "80"
      },
      {
          data: "req_itemcode",
          label: "项目代码",
          width: "100"
      }
  ],
  filterColumn: ["req_itemcode", "req_itemname", "inputcode"],
  showName: "req_itemname",
  selplaceholder: "请选择新增项目名称",

  // 申请导入 选项/默认值字段
  importOptionList: [
      // {
      //     // fileimportid: "",
      //     optionkind: "REQ",
      //     optioncode: "createnewbarcode",
      //     optionname: "生成新的条码号",
      //     optionvalue: "",
      //     note: "",
      // },
      // {
      //     optionkind: "REQ",
      //     optioncode: "autodivreq",
      //     optionname: "重新分单",
      //     optionvalue: "",
      //     note: "",
      // },
      {
          optionkind: "REQ",
          optioncode: "allowaddreqitem",
          optionname: "允许手工附加项目",
          optionvalue: "",
          note: "",
      },
      {
          optionkind: "REQ",
          optioncode: "autoprintbarcodes",
          optionname: "导入完成后立即打印条码（输入打印份数）",
          optionvalue: "",
          note: "",
      },
      // {
      //     optionkind: "REQ",
      //     optioncode: "reqsource28",
      //     optionname: "核酸采样混检申请单",
      //     optionvalue: "",
      //     note: "",
      // },
      {
          optionkind: "REQ",
          optioncode: "checkidcardno",
          optionname: "校验身份证号合法性",
          optionvalue: "",
          note: "1=校验，2=检验且不可为空",
      },
      {
          optionkind: "REQ",
          optioncode: "checkpatphone",
          optionname: "校验电话号码合法性",
          optionvalue: "",
          note: "1=校验，2=检验且不可为空",
      }
  ],
  fileimportOptionList: [{
      optionkind: "RPT",
      optioncode: "patidcardno2birthsex",
      optionname: "根据身份证号推算年龄和性别",
      optionvalue: "",
      note: "1=推算",
  }]
}